<template>
  <h1>app根组件{{ count }}</h1>
  <button @click="add">+1</button>
  <hr>
  <mymode v-model:mycount="count"></mymode>
</template>

<script>
import mymode from './mode.vue'

export default {
  name:'MyApp',
  data(){
    return{
      count:1
    }
  },
  components:{
    mymode
  },
  methods:{
    add() {
      this.count++
    }
  }

}
</script>

<style>

</style>